import base from '@/api/baseurl';
import request from '@/utils/request'

export function fetchListBCCodeReference(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCCodeReference/queryBCCodeReference',
    method: 'get',
    params: query
  })
}

//单行删除
export function deleteBCCodeReference(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCCodeReference/delBCCodeReference',
    method: 'get',
    params: query
  })
}


export function addBCCodeReference(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCCodeReference/addBCCodeReference',
    method: 'post',
    data
  })
}

export function updateBCCodeReference(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCCodeReference/updateBCCodeReference',
    method: 'post',
    data
  })
}

export function batchDeleteBCCodeReference(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCCodeReference/delManyBCCodeReference',
    method: 'post',
    data
  })
}



//同步
export function syncBCCodeReference(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCCodeReference/syncBCCodeReference',
    method: 'get',
    params: query
  })
}

//查询法人
export function fetchListuserlp(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/findoneTransfercurveuserlp',
    method: 'get',
    params: query
  })
}

//查询代码类型
export function fetchpgType(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCCodeReference/fetchpgType',
    method: 'get',
    params: query
  })
}

